//
//  YSTTabBarController.m
//  YSTChatUIKit
//
//  Created by 王文文 on 2018/2/8.
//  Copyright © 2018年 王文文. All rights reserved.
//

#import "YSTTabBarController.h"
#import "YSTChatViewController.h"
#import "YSTChatListController.h"
#import "YSTNavController.h"

@interface YSTTabBarController ()

@end

@implementation YSTTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self addChildViewController];
}
-(void)addChildViewController {
    YSTChatListController *listVC = [[YSTChatListController alloc] init];
    listVC.view.backgroundColor = [UIColor whiteColor];
    [self addChildViewController:listVC title:@"通讯录"];
}

-(void)addChildViewController:(UIViewController *)childController title:(NSString *)title {
    childController.title = title;
    YSTNavController *nav = [[YSTNavController alloc] initWithRootViewController:childController];
    [self addChildViewController:nav];
    
}




@end
